# 双重循环的特点：
# 循环次数：外层循环次数*内层循环次数
# for i in range(1,6):
#     for j in range(1,6):
#         print("*",end="")
#     print("")
#
#
#
# for i in range(1,6):
#     for j in range(0,i):
#         print("*",end="")
#     print("")


#
# for i in range(1,6):
#     for j in range(0,i):
#         print("*",end="")
#     print("")

# for i in range(1,6):
#     for j in range(0,6-i):
#         print("*",end="")


#
# print(#)
# print(#)
# print(#)
# print(#)
# print(#)
# print(*)
for j in range(1,6):
    for i in range(0,6-j):
        print(" ",end="")
    for k in range(1,2*j):
        print("*",end="")
    print("")



# 九九乘法表
for i in range(1,10):
    for j in range(1,i+1):
        sum=i*j
        print(str(i)+"*"+str(j)+"="+str(sum),end="  ")
    print("")